package tool;

import java.awt.Button;
import java.awt.HeadlessException;

public class MyButton extends Button implements ISync{

	
	public MyButton() throws HeadlessException {
		super();
	}

	public MyButton(String label) throws HeadlessException {
		super(label);
	}

	public void sync(int method) {
		switch(method)
		{
		case SYNC_FROM_DATA_OBJECT:syncFrom();break;
		case SYNC_TO_DATA_OBJECT:syncTo();break;
		}
	}
	
	private void syncFrom()
	{
		
	}
	
	private void syncTo()
	{
		
	}

}
